﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userlist.aspx.cs" Inherits="BrsdServer.userList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>用户信息列表</title>
    <link rel="Stylesheet" href="style/userlist.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="gvUsrInfo" runat="server" AutoGenerateColumns="False" 
            Width="98%" onrowdatabound="gvUsrInfo_RowDataBound" AllowPaging="True" 
            OnPageIndexChanging="gvUsrInfo_PageIndexChanging" PageSize="18">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                </asp:TemplateField>
                <asp:BoundField HeaderText="用户名" DataField="user_name" />
                <asp:TemplateField HeaderText="权限">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("user_privilege") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="E-mail" DataField="user_email" />
                <asp:BoundField HeaderText="上次登录" DataField="user_lastlogin" />
                <asp:BoundField HeaderText="注册时间" DataField="user_registertime"/>
                <asp:TemplateField HeaderText="修改">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/modifyuser.aspx" Text="修改"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="域名">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/dnslist.aspx" Text="查看"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="main_tr" Height="30"/>
            <RowStyle Height="20" VerticalAlign="Middle" HorizontalAlign="Center" Font-Size="14px" />
            <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
             
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
               
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="3"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
